Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate PSS from tpke crate with ferveo crate #51

Merged
merged 9 commits into from
Feb 22, 2023
Merged

Conversation

piotr-roslaniec
Copy link

@piotr-roslaniec piotr-roslaniec commented Jan 26, 2023

@piotr-roslaniec piotr-roslaniec changed the base branch from validity-checks to verify-simple-tdec-shares January 26, 2023 10:09
@piotr-roslaniec piotr-roslaniec marked this pull request as ready for review January 27, 2023 10:47
Base automatically changed from verify-simple-tdec-shares to main February 6, 2023 17:51
Copy link

@theref theref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

aad: &[u8],
validator_decryption_key: &E::Fr,
validator_index: usize,
g_inv: &E::G1Prepared,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing this as a param feels weird. Can we get it from a context or something?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also felt weird to me, but the context is not really used in ferveo. Maybe I could pass a DKG instance / DKG params instance here instead.

dkg.params.security_threshold as usize,
&Fr::zero(),
rng,
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes we have a single dealer. Is there a test with N dealers and an aggregated update polynomial?

Copy link
Author

@piotr-roslaniec piotr-roslaniec Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't one, but it's definitely worthwhile. I can add it to this or another PR.

@piotr-roslaniec
Copy link
Author

Will address PR comments in future PRs (#73)

@piotr-roslaniec piotr-roslaniec merged commit 23955a9 into main Feb 22, 2023
@piotr-roslaniec piotr-roslaniec deleted the ferveo-pss branch February 22, 2023 13:10
@piotr-roslaniec piotr-roslaniec restored the ferveo-pss branch February 22, 2023 13:25
@piotr-roslaniec piotr-roslaniec deleted the ferveo-pss branch February 22, 2023 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

Integrate key refreshing and key recovery from tpke with ferveo crate
3 participants